package top.lvkun.user.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import top.lvkun.basic.mapper.BaseMapper;
import top.lvkun.user.domain.Shopcart;

import java.util.List;

@Component
public interface ShopcartMapper extends BaseMapper<Shopcart>{

    Shopcart findByUserIdAndProductId(@Param("user_id") Long user_id,@Param("product_id") Long product_id);

    List<Shopcart> getShopcarts(Long userId);

    void del(Long id);
}
